/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.chlitina.store.modules.expert.entity;

import com.chlitina.store.common.persistence.BaseEntity;

/**
 * 客户采纳护理项目复合主键
 * @author lvbo
 * @version 2013-06-20
 */
public class SolutionFaceParameterPK extends BaseEntity {
	
	private static final long serialVersionUID = 1L;
	private ExpertExperienceProblemSolution expertExperienceProblemSolution; 		// 专家推荐方案
	private Parameter parameter; 		// 参数

	public SolutionFaceParameterPK() {
	}

	public ExpertExperienceProblemSolution getExpertExperienceProblemSolution() {
		return expertExperienceProblemSolution;
	}

	public void setExpertExperienceProblemSolution(ExpertExperienceProblemSolution expertExperienceProblemSolution) {
		this.expertExperienceProblemSolution = expertExperienceProblemSolution;
	}

	public Parameter getParameter() {
		return parameter;
	}

	public void setParameter(Parameter parameter) {
		this.parameter = parameter;
	}
	
	@Override
	public int hashCode() {
		return this.expertExperienceProblemSolution.hashCode() + this.parameter.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final SolutionFaceParameterPK other = (SolutionFaceParameterPK) obj;
		if (expertExperienceProblemSolution.getId() == other.getExpertExperienceProblemSolution().getId() &&
				parameter.getId() == other.getParameter().getId()) {
			return true;
		} 
		return false;
	}
}


